package c.h.a.j0;

import android.text.TextUtils;
import android.view.View;
import android.view.View.OnClickListener;
import c.h.a.v.a;
import com.liuzh.deviceinfo.analyzer.StorageAnalyzeActivity;
import java.util.Objects;

/* compiled from: lambda */
public final /* synthetic */ class b0 implements OnClickListener {
    public final /* synthetic */ x0 a;

    public /* synthetic */ b0(x0 x0Var) {
        this.a = x0Var;
    }

    public final void onClick(View view) {
        x0 x0Var = this.a;
        Objects.requireNonNull(x0Var);
        a.b.c("storage_ana_click", null);
        if (!TextUtils.isEmpty(x0Var.Y)) {
            String str = x0Var.Y;
            String str2 = "android.permission.WRITE_EXTERNAL_STORAGE";
            if (c.h.a.e0.a.b(x0Var.Z(), str2, str2)) {
                StorageAnalyzeActivity.C(x0Var.Z(), str);
                return;
            }
            try {
                x0Var.X(new String[]{"android.permission.READ_EXTERNAL_STORAGE", str2}, 1);
            } catch (Exception unused) {
            }
        }
    }
}
